package com.mgg.common.client.user;

import com.mgg.common.entity.UserDO;
import com.mgg.common.enums.ResultEnum;
import com.mgg.common.exception.ServiceException;
import com.mgg.common.vo.ResultVO;

import javax.xml.ws.Service;

/**
 * @Author: lijun
 * @Date: 2018/9/17 20:43
 */
public class UserClientFallback implements UserClient{
    @Override
    public ResultVO getUserByUserId(String userId) {
        throw new ServiceException(ResultEnum.DAO_ERROR.getCode(), ResultEnum.DAO_ERROR.getMessage());
    }

    @Override
    public UserDO getUserInfo(String userId) {
        throw new ServiceException(ResultEnum.DAO_ERROR.getCode(), ResultEnum.DAO_ERROR.getMessage());
    }

    @Override
    public ResultVO getAppUserById(String userId) {
        throw new ServiceException(ResultEnum.DAO_ERROR.getCode(), ResultEnum.DAO_ERROR.getMessage());
    }
}
